<script setup>
import { useRoute } from 'vue-router';

const route = useRoute();
// 通过url传递的参数，挂载在 query 属性上
// console.log('route -----> ', route);
console.log('home -----> ', route.query.data);
</script>

<template>
  <h1>home</h1>
</template>
